package cn.edu.ctbu.kcsj.repository;


import cn.edu.ctbu.kcsj.domain.Admin;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface AdminRepository extends JpaRepository <Admin,Integer> {
    List<Admin> findByAno(Integer username);

    /**
     * 按帐号和密码查询
     * @param ano
     * @param password
     * @return
     */
    List<Admin> findByAnoAndPassword(Integer ano,String password);

}
